package com.fangque.kepp.controller;

import com.fangque.kepp.framework.result.ResultBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : liyk
 * @version 1.0
 * @date : 2019/11/5 14:38
 */
@RestController
@RequestMapping("/public")
public class PublicTestController {

    @GetMapping("")
    public ResultBean test(){
        return ResultBean.ok("这是一个大家都可以访问的API");
    }


    @GetMapping("test")
    public ResultBean test2(){
        return ResultBean.ok("这是一个大家都可以访问的API2");
    }
}
